<?php
require_once('libs/cms.php');
require_once('config.php');
require_once 'libs/vendor/autoload.php';
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;

$paths = array("/entities");
$isDevMode = false;
// the connection configuration
$cfg = new LConfig();
$dbParams = array(
    'driver'   => 'sqlsrv',
    'user'     => $cfg->user,
    'password' => $cfg->password,
    'dbname'   => $cfg->db,
    'host'     => $cfg->host,
    'charset'  => "UTF-8"
);
$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
$entityManager = EntityManager::create($dbParams, $config);

$fontend = new LCms();
$fontend->execute();